package com.ruoyi.commerce.service;

import com.ruoyi.commerce.domain.CommercePurchase;
import com.ruoyi.commerce.domain.vo.CommercePurchaseVo;
import com.ruoyi.commerce.domain.bo.CommercePurchaseBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 采购单Service接口
 *
 * @author ruoyi
 * @date 2024-01-15
 */
public interface ICommercePurchaseService {

    /**
     * 查询采购单
     */
    CommercePurchaseVo queryById(Long purchaseId);

    /**
     * 查询采购单
     */
    List<CommercePurchaseVo> queryByIds(Collection<Long> purchaseIds);

    /**
     * 查询采购单列表
     */
    TableDataInfo<CommercePurchaseVo> queryPageList(CommercePurchaseBo bo, PageQuery pageQuery);

    /**
     * 查询采购单列表
     */
    List<CommercePurchaseVo> queryList(CommercePurchaseBo bo);

    /**
     * 新增采购单
     */
    CommercePurchaseBo insertByBo(CommercePurchaseBo bo);

    /**
     * 修改采购单
     */
    Boolean updateByBo(CommercePurchaseBo bo);

    /**
     * 校验并批量删除采购单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
